/**  
* @author renbangjie renbangjie@126.com  
* @date 2014-11-25 上午11:04:27
* @version V1.0  
* <b>Copyright (c)</b> 2014医信金融信息服务（上海）有限公司-版权所有<br/>
*/
package com.yjd.comm.enums;

/**
 * @author renbangjie renbangjie@126.com
 * @date 2014-11-25 上午11:04:27
 */
public enum ChannelEnums {

	gopay(1, "国付宝"),
	baofu(2, "宝付");
	
	private int code;
	private String label;
	
	public static ChannelEnums parse(int code){
		for (ChannelEnums channel : ChannelEnums.values()) {
			if(channel.getCode() == code){
				return channel;
			}
		}
		return null;
	}
	
	
	private ChannelEnums(int code, String label) {
		this.code = code;
		this.label = label;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	
	
	
}
